package com.william.yun.yunliwuli.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.william.yun.yunliwuli.service.CoreService;
import com.william.yun.yunliwuli.service.TemplateService;
import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;

import java.util.*;
@Slf4j
public class TemplateServiceImpl extends CoreService implements TemplateService {
    /**
     * 获取模版
     *
     * @param body
     * @param token
     * @return
     */
    @Override
    public JSONObject getTemplateService(JSONObject body, String token) {
        String url = jsonToString(body, TEMPLATE_URL);
        return getJsonResult(body, token, url.toString());
    }


}
